.class Lorg/zeam/ScreenIndicator$SliderIndicator;
.super Landroid/view/View;
.source "ScreenIndicator.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/ScreenIndicator;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "SliderIndicator"
.end annotation


# static fields
.field private static final INDICATOR_HEIGHT:I = 0x4


# instance fields
.field private mPaint:Landroid/graphics/Paint;

.field private mRect:Landroid/graphics/RectF;

.field private mTotalItems:I

.field final synthetic this$0:Lorg/zeam/ScreenIndicator;


# direct methods
.method public constructor <init>(Lorg/zeam/ScreenIndicator;Landroid/content/Context;)V
    .locals 4
    .parameter
    .parameter "context"

    .prologue
    const/4 v3, 0x0

    .line 230
    iput-object p1, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->this$0:Lorg/zeam/ScreenIndicator;

    .line 226
    invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 221
    const/4 v0, 0x5

    iput v0, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mTotalItems:I

    .line 227
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mPaint:Landroid/graphics/Paint;

    .line 228
    iget-object v0, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mPaint:Landroid/graphics/Paint;

    invoke-static {p1}, Lorg/zeam/ScreenIndicator;->access$2(Lorg/zeam/ScreenIndicator;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 229
    new-instance v0, Landroid/graphics/RectF;

    const/high16 v1, 0x40a0

    const/high16 v2, 0x4080

    invoke-direct {v0, v3, v3, v1, v2}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v0, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mRect:Landroid/graphics/RectF;

    return-void
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 3
    .parameter "canvas"

    .prologue
    const/high16 v2, 0x4000

    .line 234
    iget-object v0, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mRect:Landroid/graphics/RectF;

    iget-object v1, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v2, v2, v1}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    .line 235
    return-void
.end method

.method public setOffset(I)V
    .locals 3
    .parameter "offset"

    .prologue
    .line 243
    invoke-virtual {p0}, Lorg/zeam/ScreenIndicator$SliderIndicator;->getWidth()I

    move-result v1

    iget v2, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mTotalItems:I

    div-int v0, v1, v2

    .line 244
    .local v0, width:I
    iget-object v1, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mRect:Landroid/graphics/RectF;

    int-to-float v2, p1

    iput v2, v1, Landroid/graphics/RectF;->left:F

    .line 245
    iget-object v1, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mRect:Landroid/graphics/RectF;

    add-int v2, p1, v0

    int-to-float v2, v2

    iput v2, v1, Landroid/graphics/RectF;->right:F

    .line 246
    return-void
.end method

.method public setTotalItems(I)V
    .locals 0
    .parameter "items"

    .prologue
    .line 238
    iput p1, p0, Lorg/zeam/ScreenIndicator$SliderIndicator;->mTotalItems:I

    .line 239
    return-void
.end method
